#pragma once
#include<stdio.h>
#include<stdlib.h>
#include<assert.h>
typedef int SLDataType;
typedef struct SeqList
{
	SLDataType* num;
	size_t size;
	size_t capacity;
}SeqList;

void SeqListInit(SeqList* phead); 
void SeqListDestroy(SeqList* phead);
void SeqListPrint(SeqList* phead);

void SeqListPushBack(SeqList* phead, SLDataType x); 
void SeqListPushFront(SeqList* phead, SLDataType x);

void SeqListPopBack(SeqList* phead);
void SeqListPopFront(SeqList* phead);

int SeqListFind(SeqList* phead, SLDataType x);

void SeqListInsert(SeqList* phead, SLDataType x, int pos);
void SeqListErase(SeqList* phead, int pos);


